import { createApp } from 'vue'

import App from './App.vue'
import router from './router'
import Pinia from '@/stores'

import '@assets/styles/normalize.css'
import '@assets/styles/base.scss'

// svg图标
import 'virtual:svg-icons-register'
import elementIcons from '@/components/SvgIcon/svgicon'

// 注册插件，添加全局变量
import plugins from './plugins' // plugins

const app = createApp(App)

// 添加全局变量
app.use(plugins)
// 注册Pinia插件
app.use(Pinia)
// 注册路由插件
app.use(router)
// 全局注册所有element-plus的icon
app.use(elementIcons)

app.mount('#app')
